function main(){
	var attr1 = document.getElementById("login").value;
	var attr2 = document.getElementById("password").value;
	isValid = new Boolean(true);
	isValid = attr1 != "" && attr2 != "";
	if(isValid){
		document.auth.submit();
	}
	else
		document.getElementById("error").innerHTML = "<div class=\"alert alert-danger\"><a class=\"close\" href=\"#\" data-dismiss=\"alert\"></a>Login form: empty field(s)!</div>";
}